<template>
   <div class="footer">
    <h1>我是Footer</h1>
    <p>Count的值是{{count}}</p>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name:"Footer",
  computed:{
    //数组写法
    // ...mapState(["count"])
    //对象写法
    ...mapState({count:"count"})
  }
}
</script>

<style scoped>
.footer {
  margin: 30px;
  background: palevioletred;
}
</style>